﻿using EnhancedUI.EnhancedScroller;
using UnityEngine.UI;

public class SelectButton : EnhancedScrollerCellView
{
    private Text label;
    void Awake()
    {
        label = transform.Find("Text").GetComponent<Text>();
    }

    public void SetData(string name)
    {
        label.text = name;
        
    }

    public void OnClick()
    {
        Data data = Utils.project_dict[label.text];
        ExcelTool.GetInstance().ShowProject(label.text, data);
    }
}
